package com.example.jucdemo.waitnotify.dmeo2;

/**
 * @Author by KoVaVo
 * @Date 2023-05-20 19:24
 * @Desc: 消费者的线程
 */
public class code05_ThreadB extends Thread{

    private code03_Consumer consumer;

    public code05_ThreadB(code03_Consumer consumer){
        super();
        this.consumer = consumer;
    }

    @Override
    public void run() {
        while (true){
            consumer.getValue();
        }
    }
}
